package com.xiaoshuidi.cloud.module.rooms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomapartmentarea.vo.FuzzyQueryByAreaBuildingUnitVO;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomApartmentArea;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomHouse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 公寓下的小区 Mapper 接口
 * </p>
 *
 * @author hans.zhang
 * @since 2023-05-11
 */
public interface RoomApartmentAreaMapper extends BaseMapper<RoomApartmentArea> {

    List<RoomApartmentArea> getByAddressAndIsConcentrate(RoomHouse roomHouse);

    List<FuzzyQueryByAreaBuildingUnitVO> fuzzyQueryByAreaBuildingUnit(@Param("searchBox") String searchBox,@Param("apartmentId") Long apartmentId);
}
